package com.api.demo.dto.business.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description: 任务DTO
 * @author: yanming
 * @createDate: 2022/12/28 11:45
 */
@Data
public class ApiAddTaskDTO implements Serializable {

    private static final long serialVersionUID = 8388419845803618462L;
    @ApiModelProperty("任务名称")
    @NotBlank(message = "任务名称不能为空")
    private String taskName;

    @ApiModelProperty(value = "任务描述")
    @NotBlank(message = "任务描述不能为空")
    @Length(max = 500,message = "任务描述长度限制500")
    private String taskDesc;

    @NotNull(message = "任务类型不能为空")
    @ApiModelProperty("中台任务类型id")
    private Long taskTypeId;

    @ApiModelProperty("中台任务类型名称")
    private String taskTypeName;

    @ApiModelProperty(value = "大小额类型")
    @NotBlank(message = "大小额类型不能为空")
//    @MaxMinTypeInterface(limitValues = {"max","min"},message = "请传入正确的数据，max 大额 ，min 小额")
    private String maxMinType;

    @ApiModelProperty("开票类目id")
    private Long invoiceCatalogId;

    @ApiModelProperty(value = "开票类目")
    private String billingCategory;
}